import datetime
import json

import requests

headers = {
    "authorization": "Bearer *****************",
    "Content-Type": "application/json",
    "Connection": "keep-alive",
    "Cookie": "**********************"
}

body = {
    "clientType": "CRM",
    "fullUrl": "https://crm.relxtech.com/api/s?c=98S43Q8G56A87F",
    "scanClient": "wechat"
}

print("扫码签到  当前时间:", datetime.datetime.now())
response = requests.post(url="https://app.relxtech.com/api/crm/scan/record/v2", headers=headers, data=json.dumps(body))
if response.status_code == 200:
    print("签到成功")
else:
    print("签到失败")

print("response", response.text)
